package com.jyw.business.obstacles.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyw.business.obstacles.domain.ObsOrderMake;
import com.jyw.business.obstacles.domain.dto.web.MineOrderPageDto;
import com.jyw.business.obstacles.domain.vo.web.MineOrderPageVO;
import com.jyw.business.obstacles.domain.vo.wechat.WxWorkOrderReceiveVO;
import org.apache.ibatis.annotations.Param;

/**
 * 报障-工单处理Mapper接口
 * 
 * @author system
 * @date 2023-08-11
 */
public interface ObsOrderMakeMapper extends BaseMapper<ObsOrderMake>
{
    /**
     * 查询报障-工单处理
     * 
     * @param id 报障-工单处理主键
     * @return 报障-工单处理
     */
    public ObsOrderMake selectObsOrderMakeById(Long id);

    /**
     * 查询报障-工单处理列表
     * 
     * @param obsOrderMake 报障-工单处理
     * @return 报障-工单处理集合
     */
    public List<ObsOrderMake> selectObsOrderMakeList(ObsOrderMake obsOrderMake);

    /**
     * 新增报障-工单处理
     * 
     * @param obsOrderMake 报障-工单处理
     * @return 结果
     */
    public int insertObsOrderMake(ObsOrderMake obsOrderMake);

    /**
     * 修改报障-工单处理
     * 
     * @param obsOrderMake 报障-工单处理
     * @return 结果
     */
    public int updateObsOrderMake(ObsOrderMake obsOrderMake);

    /**
     * 删除报障-工单处理
     * 
     * @param id 报障-工单处理主键
     * @return 结果
     */
    public int deleteObsOrderMakeById(Long id);

    /**
     * 批量删除报障-工单处理
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteObsOrderMakeByIds(Long[] ids);

    /**
     * 我的工单分页查询
     * @param pageDto
     * @return
     */
    List<MineOrderPageVO> orderPage(@Param("data") MineOrderPageDto pageDto);

    /**
     * 我的工单数量统计
     * @param dto
     * @return
     */
    Integer orderPageCount(@Param("data")MineOrderPageDto dto);

    /**
     * 微信查询接单信息
     *
     * @param orderNum
     * @return
     */
    WxWorkOrderReceiveVO getInfoByOrderNum(String orderNum);
}
